/* 复古游戏机风格 */
:root {
  --retro-bg: #0f0f23;
  --retro-primary: #00ff00;
  --retro-secondary: #ff0066;
  --retro-accent: #ffff00;
  --retro-dark: #1a1a2e;
  --retro-border: #333;
  --retro-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

body {
  background: linear-gradient(135deg, var(--retro-bg), var(--retro-dark));
  color: var(--retro-primary);
  font-family: 'Press Start 2P', monospace;
  line-height: 1.6;
  min-height: 100vh;
}

.retro-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.retro-header {
  background: linear-gradient(45deg, var(--retro-dark), var(--retro-bg));
  border: 2px solid var(--retro-primary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--retro-shadow);
  text-align: center;
}

.retro-title {
  font-size: 24px;
  color: var(--retro-primary);
  text-shadow: 0 0 10px var(--retro-primary);
  margin: 0 0 10px 0;
}

.retro-subtitle {
  font-size: 12px;
  color: var(--retro-secondary);
  opacity: 0.8;
}

.retro-controls {
  background: var(--retro-dark);
  border: 2px solid var(--retro-primary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--retro-shadow);
}

.retro-card {
  background: var(--retro-dark);
  border: 1px solid var(--retro-primary);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.retro-card:hover {
  border-color: var(--retro-secondary);
  box-shadow: 0 0 15px rgba(255, 0, 102, 0.4);
  transform: translateY(-2px);
}

.retro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
  transition: left 0.5s;
}

.retro-card:hover::before {
  left: 100%;
}

.retro-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.retro-card-title {
  font-size: 14px;
  color: var(--retro-primary);
  margin: 0;
  word-break: break-all;
}

.retro-card-category {
  background: var(--retro-primary);
  color: var(--retro-bg);
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
}

.retro-card-content {
  color: #ccc;
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.retro-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #888;
}

.retro-link {
  color: var(--retro-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.retro-link:hover {
  color: var(--retro-accent);
  text-shadow: 0 0 10px var(--retro-accent);
  text-decoration: underline;
}

.retro-card-title .retro-link {
  font-size: 14px;
  font-weight: bold;
  word-break: break-all;
}

.retro-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.retro-pagination .ant-pagination-item {
  background: var(--retro-dark);
  border-color: var(--retro-primary);
}

.retro-pagination .ant-pagination-item a {
  color: var(--retro-primary);
}

.retro-pagination .ant-pagination-item-active {
  background: var(--retro-primary);
  border-color: var(--retro-primary);
}

.retro-pagination .ant-pagination-item-active a {
  color: var(--retro-bg);
}

.retro-pagination .ant-pagination-prev,
.retro-pagination .ant-pagination-next,
.retro-pagination .ant-pagination-jump-prev,
.retro-pagination .ant-pagination-jump-next,
.ant-pagination .ant-pagination-prev,
.ant-pagination .ant-pagination-next,
.ant-pagination .ant-pagination-jump-prev,
.ant-pagination .ant-pagination-jump-next {
  background: var(--retro-dark) !important;
  border-color: var(--retro-primary) !important;
  border: 1px solid var(--retro-primary) !important;
}

.retro-pagination .ant-pagination-prev a,
.retro-pagination .ant-pagination-next a,
.retro-pagination .ant-pagination-jump-prev .ant-pagination-item-container,
.retro-pagination .ant-pagination-jump-next .ant-pagination-item-container,
.ant-pagination .ant-pagination-prev a,
.ant-pagination .ant-pagination-next a,
.ant-pagination .ant-pagination-jump-prev .ant-pagination-item-container,
.ant-pagination .ant-pagination-jump-next .ant-pagination-item-container,
.ant-pagination .ant-pagination-jump-prev .ant-pagination-item-ellipsis,
.ant-pagination .ant-pagination-jump-next .ant-pagination-item-ellipsis {
  color: var(--retro-primary) !important;
}

.retro-pagination .ant-pagination-prev:hover,
.retro-pagination .ant-pagination-next:hover,
.retro-pagination .ant-pagination-jump-prev:hover,
.retro-pagination .ant-pagination-jump-next:hover,
.ant-pagination .ant-pagination-prev:hover,
.ant-pagination .ant-pagination-next:hover,
.ant-pagination .ant-pagination-jump-prev:hover,
.ant-pagination .ant-pagination-jump-next:hover {
  border-color: var(--retro-secondary) !important;
}

.retro-pagination .ant-pagination-prev:hover a,
.retro-pagination .ant-pagination-next:hover a,
.retro-pagination .ant-pagination-jump-prev:hover .ant-pagination-item-container,
.retro-pagination .ant-pagination-jump-next:hover .ant-pagination-item-container,
.ant-pagination .ant-pagination-prev:hover a,
.ant-pagination .ant-pagination-next:hover a,
.ant-pagination .ant-pagination-jump-prev:hover .ant-pagination-item-container,
.ant-pagination .ant-pagination-jump-next:hover .ant-pagination-item-container,
.ant-pagination .ant-pagination-jump-prev:hover .ant-pagination-item-ellipsis,
.ant-pagination .ant-pagination-jump-next:hover .ant-pagination-item-ellipsis {
  color: var(--retro-secondary) !important;
}

.retro-pagination .ant-pagination-disabled,
.ant-pagination .ant-pagination-disabled {
  background: rgba(26, 26, 46, 0.5) !important;
  border-color: rgba(0, 255, 0, 0.3) !important;
}

.retro-pagination .ant-pagination-disabled a,
.retro-pagination .ant-pagination-disabled .ant-pagination-item-container,
.ant-pagination .ant-pagination-disabled a,
.ant-pagination .ant-pagination-disabled .ant-pagination-item-container {
  color: rgba(0, 255, 0, 0.3) !important;
}

/* 额外的分页按钮样式覆盖 */
.ant-pagination .ant-pagination-prev button,
.ant-pagination .ant-pagination-next button {
  background: var(--retro-dark) !important;
  border-color: var(--retro-primary) !important;
  color: var(--retro-primary) !important;
}

.ant-pagination .ant-pagination-prev button:hover,
.ant-pagination .ant-pagination-next button:hover {
  border-color: var(--retro-secondary) !important;
  color: var(--retro-secondary) !important;
}

.retro-select .ant-select-selector {
  background: var(--retro-dark) !important;
  border-color: var(--retro-primary) !important;
  color: var(--retro-primary) !important;
  border-radius: 4px !important;
}

.retro-select .ant-select-selector:hover {
  border-color: var(--retro-secondary) !important;
}

.retro-select .ant-select-selector .ant-select-selection-item {
  color: var(--retro-primary) !important;
}

.retro-select .ant-select-dropdown {
  background: var(--retro-dark) !important;
  border: 1px solid var(--retro-primary) !important;
}

.retro-select .ant-select-item {
  color: var(--retro-primary) !important;
}

.retro-select .ant-select-item-option-selected {
  background: var(--retro-primary) !important;
  color: var(--retro-bg) !important;
}

.retro-select .ant-select-item-option-active {
  background: rgba(0, 255, 0, 0.1) !important;
}

.retro-input .ant-input,
.retro-input.ant-input-affix-wrapper,
.retro-input .ant-input-affix-wrapper {
  background: var(--retro-dark) !important;
  border: 1px solid var(--retro-primary) !important;
  color: var(--retro-primary) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.retro-input .ant-input:hover,
.retro-input.ant-input-affix-wrapper:hover,
.retro-input .ant-input-affix-wrapper:hover {
  border-color: var(--retro-secondary) !important;
}

.retro-input .ant-input:focus,
.retro-input.ant-input-affix-wrapper:focus,
.retro-input .ant-input-affix-wrapper:focus,
.retro-input.ant-input-affix-wrapper-focused {
  border-color: var(--retro-accent) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.2) !important;
  outline: none !important;
}

.retro-input .ant-input::placeholder {
  color: #666 !important;
}

.retro-input .ant-input-affix-wrapper {
  background: var(--retro-dark) !important;
  border-color: var(--retro-primary) !important;
  color: var(--retro-primary) !important;
}

.retro-input .ant-input-prefix {
  color: var(--retro-primary) !important;
}

.retro-input .ant-input-suffix {
  color: var(--retro-primary) !important;
}

.retro-input .ant-input-clear-icon {
  color: var(--retro-primary) !important;
  background: var(--retro-dark) !important;
}

.retro-input .ant-input-clear-icon:hover {
  color: var(--retro-secondary) !important;
}

.retro-loading {
  text-align: center;
  padding: 40px;
  font-size: 14px;
  color: var(--retro-primary);
}

.retro-loading::after {
  content: '...';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { color: transparent; text-shadow: 0.25em 0 0 transparent, 0.5em 0 0 transparent; }
  40% { color: var(--retro-primary); text-shadow: 0.25em 0 0 transparent, 0.5em 0 0 transparent; }
  60% { text-shadow: 0.25em 0 0 var(--retro-primary), 0.5em 0 0 transparent; }
  80%, 100% { text-shadow: 0.25em 0 0 var(--retro-primary), 0.5em 0 0 var(--retro-primary); }
}